package com.bwie.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.pojo.CustomerAddress;
import com.bwie.service.CustomerAddressService;
import com.bwie.mapper.CustomerAddressMapper;
import com.bwie.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lenovo
 * @description 针对表【customer_address(客户常用地址表)】的数据库操作Service实现
 * @createDate 2025-07-11 16:04:07
 */
@Service
public class CustomerAddressServiceImpl extends ServiceImpl<CustomerAddressMapper, CustomerAddress>
        implements CustomerAddressService {

    @Autowired
    CustomerAddressMapper customerAddressMapper;

    @Override
    public R getAddressList() {

        List<CustomerAddress> addresses = customerAddressMapper.selectList(null);

        return R.OK(addresses);

    }
}




